package com.rdsm.reader;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

public class ImageTextButton extends LinearLayout {
	//private ImageButton imgbtn;
	private TextView imgbtn;
	private TextView text;
	
	public ImageTextButton(Context context) {
		super(context);
	}

	public ImageTextButton(Context context, AttributeSet attrs) {
		super(context, attrs);
		LayoutInflater.from(context).inflate(R.layout.imagetextbutton, this, true);
		//imgbtn=(ImageButton)findViewById(R.id.btn);
		imgbtn=(TextView)findViewById(R.id.btn);
		text=(TextView)findViewById(R.id.text);
	}
	
	public void setImageResource(int resId){
		imgbtn.setBackgroundResource(resId);
	}
	
	public void setTextViewText(String str){
		text.setText(str);
	}
	
}
